package model;

import javax.microedition.rms.RecordStoreException;
import javax.microedition.rms.RecordStoreFullException;
import javax.microedition.rms.RecordStoreNotFoundException;

import base.Contacts;

import communication.CommFactory;

public class ContactFactory {

	public static Contacts getContacts(MsgContact own, int type) {
		switch(type) {
		case CommFactory.BLUETOOTH:
			try {
				return new BluetoothContacts(own);
			} catch (RecordStoreFullException e) {
			} catch (RecordStoreNotFoundException e) {
			} catch (RecordStoreException e) {}
			return null;
		}
		return null;
	}
}
